import java.sql.Connection;
import com.dhtmlx.connector.*;

public class scheduler_06_json_options_connector extends ConnectorServlet {

	@Override
	protected void configure() {
		Connection conn= ( new DataBaseConnection()).getConnection();

		JSONOptionsConnector list = new JSONOptionsConnector(conn);
		list.render_table("types","typeid","typeid(value),name(label)");

		JSONSchedulerConnector scheduler = new JSONSchedulerConnector(conn);
		scheduler.set_options("type", list);
		scheduler.render_table("tevents","event_id","start_date,end_date,event_name,type");
	}

}
